package cn.shop.dys.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.TextView;

import cn.shop.dys.R;

/**
 * 作者：jian on 2016/4/23 15:37
 * 孙建
 */
public class ProductListItem extends FrameLayout{

    private TextView mCount;
    private TextView mName;
    private TextView mStyle;

    public ProductListItem(Context context) {
        this(context,null);
    }

    public ProductListItem(Context context, AttributeSet attrs) {
        super(context, attrs);
        View.inflate(context, R.layout.indent_detail_list_item,this);
        mName = (TextView) findViewById(R.id.tv_prodcut_name);
        mStyle = (TextView) findViewById(R.id.tv_prodcut_style);
        mCount = (TextView) findViewById(R.id.tv_product_count);
    }
    public void setProductName(String name){
        mName.setText(name);
    }
    public void setProductStyle(String style){
        mStyle.setText(style);
    }
    public void setProductCount(String count){
        mCount.setText(count);
    }
}
